package com.feichuang.chineseWoodCarving.dao;

import org.mybatis.spring.SqlSessionTemplate;

/**
 * @author guokan
 * 
 */
public interface IBaseDao {
    /**
     * 设置SqlSessionRead.
     * 
     * @param sqlSessionTemplate
     *            s
     */
    void setSqlSessionRead(SqlSessionTemplate sqlSessionTemplate);

    /**
     * 设置SqlSessionWrite.
     * 
     * @param sessionTemplate
     *            d
     */
    void setSqlSessionWrite(SqlSessionTemplate sessionTemplate);

    /**
     * 设置SqlSession.
     * 
     * @param sessionTemplate
     *            d
     */
    void setSqlSession(SqlSessionTemplate sessionTemplate);

    /**
     * 获取SqlSessionRead.
     * 
     * @return SqlSessionTemplate
     */
    SqlSessionTemplate getSqlSessionRead();

    /**
     * 获取SqlSessionWrite.
     * 
     * @return SqlSessionTemplate
     */
    SqlSessionTemplate getSqlSessionWrite();

    /**
     * 获取SqlSession.
     * 
     * @return SqlSessionTemplate
     */
    SqlSessionTemplate getSqlSession();
}
